//
//  KDAddKeywordView.h
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/11/4.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol KDAddKeywordViewDelegate;
@interface KDAddKeywordView : UIView
+ (instancetype)addKeywordView;
@property (nonatomic, copy) NSString * name;
/**
 *  属于哪种类型：名称0；地区1；关键词组2；微博关键词组3；不匹配关键词组4；
 */
@property (nonatomic, assign) NSInteger type;
/**
 *  是否可点击
 */
@property (nonatomic, assign) BOOL enable;

/**
 *  是否已选择
 */
@property (nonatomic, assign, getter=isChosen) BOOL chosen;

@property (nonatomic, weak) id<KDAddKeywordViewDelegate> delegate;

@end
@protocol KDAddKeywordViewDelegate <NSObject>

- (void)KDAddKeywordView:(KDAddKeywordView*)nameView DidSelectWithType:(NSInteger)type;

@end